package com.mairuide.datalog;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.mairuide._frame.base.BaseRepository;

@Repository
public interface DataOperationImportlLogRepository extends BaseRepository<DataOperationImportLog> {
	List<DataOperationImportLog> findByParentLogIdOrderByImportDetailId(Integer parentLogId);
	
	/**
	 * 根据案件编号查询导入日志详情信息
	 * @param caseManagerId
	 * @return
	 */
	List<DataOperationImportLog> findByCaseManagerIdAndIsDeleteAndTableFlat(String caseManagerId,Integer isDelete, Integer tableFlat);
	
	/**
	 * 查询文件hash值是否存在
	 * @param dealFlowUuid
	 * @param isDelete
	 * @param tableFlat
	 * @return
	 */
	List<DataOperationImportLog> findByDealFlowUuidAndCaseManagerIdAndIsDeleteAndTableFlatAndImportResult(String dealFlowUuid,String caseManagerId,Integer isDelete, Integer tableFlat,String importResult);
	
	void deleteByCaseManagerId(String caseManagerId);
}
